#ifndef ANIMATIONMANAGER_H
#define ANIMATIONMANAGER_H
#include "StompedReality/Asset/JointAnimation.h"
#include "StompedReality/Core.h"
#include "StompedReality/Core/GameAccess.h"
namespace StompedReality
{
namespace animation
{
class DLL_EXPORT AnimationManager : public StompedReality::GameAccess {
 private:

  JointAnimation* _jointAnimations;

 public:

  AnimationManager( );
  virtual ~AnimationManager( );
  void Initialize ( int capacity );
  JointAnimation* getJointAnimation( StompedReality::ID id );

  //! \brief	Reads data.
  //!			Reads data from the json value. No changes if parsing fails.
  //! \param	root	The json value.
  //! \return	Success parsing.
  bool ParseConfig ( Json::Value& root );

  //! \brief	Reads textures from file.
  bool ReadFromFile ( const char* fileName );
};

}
}
#endif // ANIMATIONMANAGER_H
